<?php
@session_start();
include "cnn/valida_sesion.php";
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Página Administracion</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/mm_training.css" type="text/css" />
<link rel="stylesheet" href="css/menu_style2.css" type="text/css" />
<style type="text/css">
<!--
.Estilo2 {font-size: 36px}
.Estilo3 {
	color: #FF6600;
	font-weight: bold;
}
-->
</style>
<script src="js/Funciones_Administrador.js" type="text/javascript"></script>
<script src="js/Carga_Url.js" type="text/javascript"></script>
</head>

<body bgcolor="#64748B">
<table border="0" cellspacing="0" cellpadding="0">
	<tr bgcolor="#26354A">
	<td width="228" nowrap="nowrap"><img src="Imagenes/logoitsz.GIF" width="172" height="106" /></td>
	<td height="70" colspan="2" class="logo" nowrap="nowrap">DECIDE<span class="Estilo2">T </span><span class="tagline">| DEFINE TU FUTURO</span></td>
  </tr>

	<tr bgcolor="#FF6600">
	<td colspan="3"><img src="Imagenes/mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
	</tr>

	<tr bgcolor="#D3DCE6">
	<td colspan="3"><img src="Imagenes/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>

	<tr bgcolor="#FFCC00">
	<td width="228" nowrap="nowrap">&nbsp;</td>
	<td colspan="2" height="24">
	<table width="782" border="0" cellpadding="0" cellspacing="0" id="navigation">
        <tr>
          <td class="navText" align="center" nowrap="nowrap"><a style="background-color: #FF6600;color: #FFFFFF" href="#">ENCUESTAS</a></td>
          <td class="navText" align="center" nowrap="nowrap"><a href="Galeria_Psicologia.php">GALERIA</a></td>
          <td class="navText" align="center" nowrap="nowrap"><a href="Personal_Perfil.php">PERSONAL</a></td>
          <td class="navText" align="center" nowrap="nowrap"><a href="salir.php">SALIR</a></td>
        </tr>
      </table>	</td>
	</tr>

	<tr bgcolor="#D3DCE6">
	<td colspan="3"><img src="Imagenes/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>

	<tr bgcolor="#FF6600">
	<td colspan="3"><img src="Imagenes/mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
	</tr>

	<tr bgcolor="#D3DCE6">
            <td colspan="2" valign="top"><br />
                <div class="menuContainer">

        <div class="outer">
	<div id="menu">
        <ul>
            <li><a href='#' target='_self'>ENCUESTA</a></li>
            <li><a href='Galeria_Psicologia.php' target='_self'>GALERIA</a></li>
            <li><a href='Personal_Perfil.php' target='_self'>PERSONAL</a></li>
            <li><a href='salir.php' target='_self'>SALIR</a></li>

            </ul>
            </div>
            </div>
    </div>



        </td>
            <td width="943" valign="top"  height="500">
                <div style="background-color: antiquewhite;border:blue 1px solid;" >
                <table id="mytable" name="mytable" ><tr>
                        <td colspan="2"><h3> Busqueda por Filtraje: </h3></td>
                        </tr>


            <?php
                        //******************  Filtro de Año  *************************//
                        echo "<tr><td>Año</td><td><select name=\"Anio\" id=\"Anio\" onChange=\"Combo_Anio(this.value)\">";
                        //echo "<option value=\"1\">Todos</option>";
                        $cnn = cnn2();
                        $query = 'call Consulta_Anio()';
                        //echo "<br>Consulta".$query;
                        $sql=mysqli_query($cnn,$query) or die ("Error:".mysqli_error($cnn));
                        while($res=mysqli_fetch_object($sql)){
                            echo "<option value=\"".$res->Valor."\">".$res->Descripcion." -- ".$res->Numero."</option>";

                        }
                        echo "</select></td>";
                        mysqli_close($cnn);
                        //******************  Filtro de Mes  *************************//
                        echo "<td>Mes</td><td id='cmes' name='cmes'></td>";
                        echo "<td>Dia</td><td id='cdia' name='cdia'></td></tr>";
                        echo "<tr><td>Buscar</td><td id='cbusca' name='cbusca'><input type='button' value='Buscar' onClick=\"Carga('Encuestas_Resultado.php','Resultado')\"></td></tr>";


                ?>

                    </table>
                    <br/>
                    </div>
                <div id="Resultado" name="Resultado">
                    Esperando Proceso...
                    </div>

            </td>
  </tr>

	<tr bgcolor="#D3DCE6">
	<td colspan="3"><img src="Imagenes/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>

	<tr>
	<td colspan="3"><img src="Imagenes/pie.gif" width="1196" height="163" /></td>
	</tr>
</table>
</body>
</html>


